package com.hmy.infrastructure.service.corpsearch.impl;

import com.hmy.infrastructure.api.bo.request.corpsearch.CorpDetailSearchRequest;
import com.hmy.infrastructure.api.bo.request.corpsearch.CorpSearchRequest;
import com.hmy.infrastructure.api.bo.response.corpsearch.CorpDetailClientResponse;
import com.hmy.infrastructure.api.bo.response.corpsearch.CorpSearchResponse;
import com.hmy.infrastructure.service.corpsearch.CorpSearchBaseService;
import com.hmy.infrastructure.service.corpsearch.ICorpSearchService;
import org.springframework.stereotype.Service;

/**
 * @Description 企业信息查询类
 * @Author seven.qi
 * @Date 2023/11/27 10:35
 * @Version 1.0
 */
@Service
public class CorpSearchService extends CorpSearchBaseService implements ICorpSearchService {
    @Override
    public CorpSearchResponse nameSearch(CorpSearchRequest corpSearchRequest) throws Exception {
        return getCorpSearchService(corpSearchRequest).nameSearch(corpSearchRequest);
    }

    @Override
    public CorpDetailClientResponse detailSearch(CorpDetailSearchRequest detailSearchRequest) throws Exception {

        return getCorpSearchService(detailSearchRequest).detailSearch(detailSearchRequest);
    }
}
